package com.example.spring;

import com.example.spring.service.CustomerService;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * ClassName:testCustomerService
 * Package:com.example.spring
 * Description:
 *
 * @Author:ZhangXin
 * @Create:2023/5/8-19:05
 * @Version:v1.0
 */
public class testCustomerService {

    @Test
    public void name() {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("spring-autowire.xml");
        CustomerService cs = applicationContext.getBean("cs", CustomerService.class);
        cs.save();
    }
}
